package upmc.fr.android.rss;

import android.content.Context;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.LinearLayout;

public class ListElement extends LinearLayout {

	private CheckBox box;
	private Button button;
	
	public ListElement(Context context, String textButton) {
		super(context);
		setOrientation(HORIZONTAL);
		box = new CheckBox(context);
		button = new Button(context);
		button.setText(textButton);

		addView(box);
		addView(button, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
	}

	public CheckBox getBox() {
		return box;
	}

	public void setBox(CheckBox box) {
		this.box = box;
	}

	public Button getButton() {
		return button;
	}

	public void setButton(Button button) {
		this.button = button;
	}

	
}
